<!--{if $op == 'changeName'}-->
	<p>
		<form action="house.php?ac=ajax&op=changeName&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<label for="ajaxForm_name">房屋名字</label><input onkeydown="return Form.disabledCtrl(event)" id="ajaxForm_name" type="text" value="{$temp['name']}" class="input" name="name" />
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'getSave'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<p>请选择你需要求救的好友（使用Ctrl可以选择多个好友）</p>
			<label>选择好友</label><select id='friend_select' MULTIPLE size=10 style="width:240px;"><!--{loop $users $val}--><option value="{$val['uid']}">{$val['name']}</option><!--{/loop}--></select>
			<input type="hidden" name="friend" value=""/> 
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定', function(){
		document.forms['ajaxForm'].friend.value = getSelectValues($('friend_select')).join(',');
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'credit'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
		<p>当前拥有 <font color="#FF000">$_SGLOBAL['member']['credit']</font> 点积分</p>
        <!--{if $house_config['credit_money'] > 0 && $house_config['money_credit'] > 0}-->
		<p>兑换规则：<b>1</b>个积分 == <font color="#008000">{$house_config['credit_money']}</font>个金币，<font color="#008000">{$house_config['money_credit']}</font>个金币 == <b>1</b>个积分</p>
		<p><label>兑换方式：</label> <input type="radio" checked value=0 name="type" onclick="$('credit_notice').innerHTML='个积分（输入<b>1</b>的倍数)';" />积分换金币 <input type="radio" value=1 name="type" onclick="$('credit_notice').innerHTML='个金币(输入<font color=#008000>{$house_config['money_credit']}</font>的倍数)';" />金币换积分</p>
		<p><label>兑换数量：</label><input type="text" value='' name="num"><span id='credit_notice'>个积分（输入<b>1</b>的倍数）</span></p><!--{elseif $house_config['credit_money'] > 0}-->
        <p>兑换规则：<b>1</b>个积分 == <font color="#008000">{$house_config['credit_money']}</font>个金币</p>
		<p><label>兑换方式：</label> <input type="radio" checked value=0 name="type" onclick="$('credit_notice').innerHTML='个积分（输入<b>1</b>的倍数)';" />积分换金币 </p>
		<p><label>兑换数量：</label><input type="text" value='' name="num"><span id='credit_notice'>个积分（输入<b>1</b>的倍数）</span></p><!--{else}-->
        <p>兑换规则：<font color="#008000">{$house_config['money_credit']}</font>个金币 == <b>1</b>个积分</p>
		<p><label>兑换方式：</label> <input type="radio" checked value=1 name="type" onclick="$('credit_notice').innerHTML='个金币(输入<font color=#008000>{$house_config['money_credit']}</font>的倍数)';" />金币换积分 </p>
		<p><label>兑换数量：</label><input type="text" value='' name="num"><span id='credit_notice'>个积分(输入<font color=#008000>{$house_config['money_credit']}</font>的倍数)</span></p><!--{/if}-->
		<p>提示：选择积分换金币，则兑换数量输入的<font color="#FF000">积分</font>。
        <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;选择金币换积分，则兑换数量输入的<font color="#008000">金币</font>。</p>
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'invite'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<p>选择你要邀请的好友（使用Ctrl可以选择多个好友）</p>
			<label>选择好友</label><select id='friend_select' MULTIPLE size=10 style="width:240px;"><!--{loop $users $val}--><option value="{$val['uid']}">{$_SN[$val['uid']]}</option><!--{/loop}--></select>
			<input type="hidden" name="friend" value=""/> 
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定', function(){
		document.forms['ajaxForm'].friend.value = getSelectValues($('friend_select')).join(',');
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'changePrice'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<p>实际的房租是 房东设置的房屋租金 + 物业费</p>
			<label for="ajaxForm_name">房屋租金</label><input onkeydown="return Form.disabledCtrl(event)" id="ajaxForm_name" type="text" value="{$temp['price']}" class="input" name="price" style="width:100px;"/> 个金币/天
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'get_goods'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<p>该房屋的租金 {$money} 个金币，你确定要收租？</p>
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '确定收租', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'get_back'}-->
	<p>
		<form action="house.php?ac=ajax&op={$op}&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm"  class="ajaxForm">
			<p><!--{if $money}-->收回房屋时，你可以获得租金 {$money} 个金币<!--{else}-->TA居住的时间太短，不用支付任何租金<!--{/if}-->，你确定要收回房屋？</p>
		</form>
	</p>
	<script type="text/javascript">
	base.setOk(true, '收回房屋', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'renting'}-->
	<!--{if !empty($data)}-->
		<form action="house.php?ac=ajax&op=renting" method="POST"  id="ajaxForm" name="ajaxForm" class="ajaxForm">
			<fieldset>
				<legend>邀请朋友同居</legend>
				<p><b>您可以通过发送邀请来邀请朋友一起来同居</b></p>
				<p><label for="friend">选择好友</label><select name="friend_0" id="friend"><!--{loop $data $val}--><option value="{$val['uid']}">{$val['name']}</option><!--{/loop}--></select></p>
				<p><label>　</label><input type="button" value="发出邀请" class="submit" onclick="$('form_type').value=0;Form.submitDo('ajaxForm');" /></p>
			</fieldset>
			<fieldset>
				<legend>把TA抢来同居</legend>
				<p><b>怎么邀请都没人来同居？</b></p>
				<p><b>先礼后兵，邀请不来，可以用抢！(花费{$house_config['focus']}金币) </b></p>
				<p><label for="friend">选择好友</label><select name="friend_1" id="friend"><!--{loop $data $val}--><option value="{$val['uid']}">{$val['name']}</option><!--{/loop}--></select></p>
				<p><label>　</label><input type="button" value="我是流氓" class="submit"  onclick="$('form_type').value=1;Form.submitDo('ajaxForm');" /><input type="hidden" value="0" name="form_type" id="form_type"  /></p>
			</fieldset>
		</form>
	<!--{else}-->
		<p>你还没有异性好友，不能邀请好友来同居<script type="text/javascript">setTimeout(function(){base.bgChangeColor('dialog-advanced', 'down', base.closeDoDiv);}, 2000);</script></p>
	<!--{/if}-->
<!--{elseif $op == 'friend_renting'}-->
	<!--{if !empty($data)}-->
		<form action="house.php?ac=ajax&op={$op}&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm" class="ajaxForm">
			<p><b>您可以通过发送邀请来邀请朋友租用你的房子以获得房租</b></p>
			<p><label for="friend">选择好友</label><select name="friend" id="friend"><!--{loop $data $val}--><option value="{$val['uid']}">{$val['name']}</option><!--{/loop}--></select></p>
			<p><label>　</label><input type="button" value="发出邀请" class="submit" onclick="Form.submitDo('ajaxForm');" /></p>
		</form>
	<!--{else}-->
		<p>你还没有好友，不能通过邀请好友居住的方式来获得房租<script type="text/javascript">setTimeout(function(){base.bgChangeColor('dialog-advanced', 'down', base.closeDoDiv);}, 2000);</script></p>
	<!--{/if}-->
<!--{elseif $op == 'push_out'}-->
		<form action="house.php?ac=ajax&op={$op}" method="POST"  id="ajaxForm" name="ajaxForm" class="ajaxForm">
			<p><b>把同居的TA踢出去，你需要支付{$house_config['push']}个金币</b><input type="hidden" value="update" name="myFormAc" /></p>
			<p style="width:60px;float:left"><span class="pheadpic"><a target='_blank' href="space.php?uid={$status['live_with_uid']}" style="background-image: url(<!--{avatar($status['live_with_uid'],small)}-->);"></a></span></p>
			<p>俗话说，一夜夫妻百日恩！你就真的这么狠心？</p>
			<div style="clear:both"></div>
		</form>
		<script type="text/javascript">
		base.setOk(true, '我确定', function(){
			Form.submitDo('ajaxForm');
		});
		</script>
<!--{elseif $op == 'find'}-->
	<form action="house.php?ac=ajax&op={$op}&touid={$touid}" method="POST"  id="ajaxForm" name="ajaxForm" class="ajaxForm">
		<div id='find_friend'>
			<ul>
				<li class="left"><span class="pheadpic"><a target='_blank' href="space.php?uid={$touid}"><!--{avatar($touid,small)}--></a></span></li>
				<li>
					<p><label>邀请TA同居</label><input type="button" value="发出邀请" class="submit" onclick="$('find_type').value=0;Form.submitDo('ajaxForm');" /></p>
					<p><label>把TA抢过来</label><input type="button" value="我是流氓" class="submit" onclick="$('find_type').value=1;Form.submitDo('ajaxForm');" /></p>
				</li>
		</div>
		<div style="clear:both"></div>
		<input type="hidden" value="update" name="myFormAc" />
		<input type="hidden" value="0" name="type" id="find_type" />
	</form>
<!--{elseif $op == 'sell'}-->
	<form action="house.php?ac=ajax&op={$op}&id={$id}" method="POST"  id="ajaxForm" name="ajaxForm" class="ajaxForm">
		<p><b>你却定要把这所房子卖掉吗？</b></p>
		<p>收益计算：房屋价值的80% - 房屋价值的80%*税收</p>
		<p><label>你的收益</label>{$my_get}</p>
		<input type="hidden" value="update" name="myFormAc" />
	</form>
	<script type="text/javascript">
	base.setOk(true, '我确定', function(){
		Form.submitDo('ajaxForm');
	});
	</script>
<!--{elseif $op == 'love_history'}-->
	<!--{if !empty($data)}-->
		<!--{loop $data $val}-->
			<li class="info">
				<a href="space.php?uid={$val['uid_f']}" target="_blank">{$GLOBALS['_SN'][$val['uid_f']]} <img src="house/view/img/home.gif" /></a> {$val['w_l']} <a href="space.php?uid={$val['uid_t']}" target="_blank">{$GLOBALS['_SN'][$val['uid_t']]} <img src="house/view/img/home.gif" /></a> {$val['w_r']}  。 {$val['dateline']}
			</li>
		<!--{/loop}-->
	<!--{else}-->
		<li class="no_gift">还没有同居事件</li>
	<!--{/if}-->
<!--{elseif $op == 'miyu_get'}-->
	<!--{if !empty($data)}-->
		<!--{loop $data $val}-->
			<li class="info">
				<a href="space.php?uid={$val['uid']}" target="_blank">{$GLOBALS['_SN'][$val['uid']]} <img src="house/view/img/home.gif" /></a> 说：{$val['message']}  。 {$val['dateline']}
			</li>
		<!--{/loop}-->
	<!--{else}-->
		<li class="no_gift">还没有蜜语</li>
	<!--{/if}-->
<!--{else}-->
	<!--{if !empty($data)}-->
		<!--{if $type == 1}-->
			<!--{loop $data $val}-->
				<li>
					<div class="img"><img width=70 height=70 src="house/view/gift/{$val['gid']}.jpg" /></div><div class="desc">{$val['name']} 拥有 <font color=red>{$val['num']}</font> {$val['msg']}</div>
				</li>
			<!--{/loop}-->
		<!--{else}-->
			<!--{loop $data $val}-->
				<li class="info">
					<a href="space.php?uid={$val['uid']}" target="_blank">{$GLOBALS['_SN'][$val['uid']]} <img src="house/view/img/home.gif" /></a>  送了一 {$val['msg']} <font color=red>{$val['name']}</font> 给 <a href="space.php?uid={$val['uid_2']}" target="_blank">{$GLOBALS['_SN'][$val['uid_2']]} <img src="house/view/img/home.gif" /></a> 花费了 {$val['price']} 金币，增加了{$val['thick']}点亲密度。 {$val['dateline']}
				</li>
			<!--{/loop}-->
		<!--{/if}-->
	<!--{else}-->
		<li class="no_gift">{$me}还没有收到过礼物</li>
	<!--{/if}-->
<!--{/if}-->